<?php
namespace app\admin\controller;
use app\common\lib\Upload;

class Upload extends Base {
    public function __construct() {
        parent::__construct();
    }
    
    public function uploadPic() {
        $file = request()->file();
        $upload = new Upload($file);
        $upload->uploadpic();
    }
}